<?python
    from turbogears import identity

    from mnemoply.common_knowledge import day_captions
    from mnemoply import model
?>
<span xmlns="http://www.w3.org/1999/xhtml"
    xmlns:py="http://genshi.edgewall.org/">
    <table class="ma_content">
        <tbody>
        <tr py:for="lis in model.LessonInSchedule.selectBy(group=obj)">

            <td>${day_captions[lis.dayOfWeek]}</td>
            <td><span>${"%02d" % lis.startTimeHour}</span>:<span>${"%02d" % lis.startTimeMinute}</span></td>
            <td>${lis.classroom.title}</td>

            <td py:if="identity.has_any_permission('dba', 'LessonInSchedule/edit')">
                <a href="delete_lis?lis_id=${lis.id}">delete</a>
            </td>
        </tr>
        </tbody>
    </table>

    <hr />

    <span py:if="identity.has_any_permission('dba', 'LessonInSchedule/edit')">${ET(tab.add_form())}</span>
</span>

